package com.mdd.admin.service;

import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.validate.DispatchRuleConfigurationCreateValidate;
import com.mdd.admin.validate.DispatchRuleConfigurationUpdateValidate;
import com.mdd.admin.validate.DispatchRuleConfigurationSearchValidate;
import com.mdd.admin.vo.DispatchRuleConfigurationListedVo;
import com.mdd.admin.vo.DispatchRuleConfigurationDetailVo;
import com.mdd.common.core.PageResult;

/**
 * 发文规则配置服务接口类
 * @author LikeAdmin
 */
public interface IDispatchRuleConfigurationService {

    /**
     * 发文规则配置列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<DispatchRuleConfigurationListedVo>
     */
    PageResult<DispatchRuleConfigurationListedVo> list(PageValidate pageValidate, DispatchRuleConfigurationSearchValidate searchValidate);

    /**
     * 发文规则配置详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return DispatchRuleConfigurationDetailVo
     */
    DispatchRuleConfigurationDetailVo detail(Integer id);

    /**
     * 发文规则配置新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(DispatchRuleConfigurationCreateValidate createValidate);

    /**
     * 发文规则配置编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(DispatchRuleConfigurationUpdateValidate updateValidate);

    /**
     * 发文规则配置删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

}
